import request from './request.js'

const lives = {
	//获取直播列表
	getLivesList(data) {
		return request.post(`/live/getLivesList`, data)
	},
	//创建直播
	createLive(data) {
		return request.post(`/live/createLive`, data)
	},
	//结束直播
	finishLive(data) {
		return request.post(`/live/finishLive`, data)
	},
	//修改直播信息
	reviseLive(data) {
		return request.post(`/live/reviseLive`, data)
	},
	//判断是否已开启直播
	judgeIsOpen(data) {
		return request.post(`/live/judgeIsOpen`, data)
	}
}
export default lives